package com.xuexisheqv.auth.infra.basic.service;

import com.xuexisheqv.auth.infra.basic.entity.AuthRolePremission;

import java.util.List;

/**
 * (AuthRolePremission)表服务接口
 *
 * @author makejava
 * @since 2024-02-17 11:50:40
 */
public interface AuthRolePremissionService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    AuthRolePremission queryById(Long id);

    /**
     * 新增数据
     *
     * @param authRolePremission 实例对象
     * @return 实例对象
     */
    AuthRolePremission insert(AuthRolePremission authRolePremission);

    /**
     * 修改数据
     *
     * @param authRolePremission 实例对象
     * @return 实例对象
     */
    AuthRolePremission update(AuthRolePremission authRolePremission);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);


    /**
     * 批量插入
     * @param rolePremissionList
     * @return
     */
    Integer batchInsert(List<AuthRolePremission> rolePremissionList);

    List<AuthRolePremission> queryByConditon(AuthRolePremission authRolePremission);
}
